//
//  ReadViewManager.m
//  OrderOnline
//
//  Created by YAPPA_3 on 11/29/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "ReadViewManager.h"
#import "OrderOnlineViewController.h"

@implementation ReadViewManager
@synthesize m_readView;


- (id)initWithFrame:(CGRect)frame is_anim:(BOOL)is_anim
{
	if( self == [super initWithFrame:frame] )
	{
		m_readView = [[ReadViewController alloc] initWithNibName:@"ReadViewController" bundle:nil];
		[m_readView view];			
		[m_readView.view setFrame:frame];
		[self addSubview:m_readView.view];           
		self.autoresizingMask = VIEW_AUTORESIZE_ALL;
	}
	return self;	
}



- (void) dealloc
{
	[super dealloc];
	[m_readView release];
	
}

- (void) willRotate:(UIInterfaceOrientation)orie duration:(NSTimeInterval)duration
{
	page = [m_readView getPageCurrent];
}
- (void) didRotate:(UIInterfaceOrientation)orie
{		
	[m_readView setFrame];	
	[m_readView changePage:page];	
	[m_readView setViewInfo:page];
}
@end
